package com.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.logging.Logger;

/**
 * Created by v_chenqi02 on 2016/11/16.
 */

@RestController
public class ZipkinController {

    private static final Logger LOG = Logger.getLogger(ZipkinController.class.getName());

    @Autowired
    RestTemplate restTemplate;

    @RequestMapping("/")
    public String index(){
        LOG.info("safddddddddddddddddddddddddddddddddddd");
        return restTemplate.getForEntity("http://localhost:8090/",String.class).getBody();
    }

}
